﻿<%@ Page Language="C#" MasterPageFile="~/students/masterpage.Master" AutoEventWireup="true" CodeBehind="SAttendence.aspx.cs" Inherits="ESCHOOL.students.WebForm3" Title="Attendence" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
        <table class="style3">
            <tr>
                <td style="font-weight: 700; text-decoration: underline; text-align: center">
                    Attendence Report</td>
            </tr>
        </table>
        <p>
            <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
            <br />
        </p>
        <table class="style1">
            <tr>
                <td style="text-align: left; margin-left: 40px">
                    Select year&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:DropDownList ID="ddyear" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="btnview" runat="server" onclick="btnview_Click" Text="Show" />
                    <br />
                    <br />
                </td>
            </tr>
        </table>
        <p>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                onpageindexchanging="GridView1_PageIndexChanging" PageSize="12" 
                Visible="False">
                <Columns>
                    <asp:TemplateField HeaderText="Month">
                    <ItemTemplate>
                    <%# getMonth( Eval("month").ToString()) %>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Present">
                                        <ItemTemplate>
                    <%# getpresent(Eval("present").ToString()) %>
                    </ItemTemplate>

                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Absent">
                                        <ItemTemplate>
                    <%# getabsent(Eval("absent").ToString()) %>
                    </ItemTemplate>

                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </p>
    
</asp:Content>
